home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11946 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  666 b 

  1. Path: susx.ac.uk!tepd6
  2. From: tepd6@central.susx.ac.uk (George Rattray)
  3. Newsgroups: comp.lang.c
  4. Subject: Storing C Functions In An Array?
  5. Date: 27 Mar 1996 18:37:59 GMT
  6. Organization: University of Sussex
  7. Message-ID: <4jc1u7$5e9@infa.central.susx.ac.uk>
  8. NNTP-Posting-Host: solx1.central.susx.ac.uk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Can someone help me, I'm trying to store functions in an array at
  12. compile time. The following functions are defined as
  13.  
  14.     struct complex func(struct complex, CHNL);
  15.  
  16. I want to store them in an array ch[N];
  17.  
  18. Therefor using the function with an index as 
  19.  
  20.     ret = ch[0](x,chnl);
  21.  
  22. Any help will be most appreciated, Thanks
  23.  
  24. George
  25.  
  26.